<template>
  <div id="main">
    <section id="TopNav">
      <div id="top">
        <span id="return">&lt;</span>
        <div id="Toptext">支付订单</div>
        <span id="pay-problem">支付问题</span>
      </div>
    </section>
    <div class="countdown-time">
      <p class="pay-time">
        <i class="iconfont icon-shijian"> 支付剩余时间：</i
        ><span><van-count-down :time="time" /></span>
      </p>
      <p class="pay-pirce">￥365.00</p>
    </div>
    <div class="things">
      <div class="pay-balance subject">
        <div class="common">
          <div>
            <p class="pay-heading">储值支付</p>
            <p class="pay-details">扣款顺序按默认展示顺序</p>
          </div>
          <div class="pay-right">抵扣支付 <span>￥0</span></div>
        </div>
        <div class="common">
          <div>
            <i class="iconfont icon-yue"> <span> 余额支付</span></i>
            <!-- <p class="pay-heading">余额支付</p> -->
            <p class="pay-details">去充值></p>
          </div>
          <div class="pay-right"><span>(可用￥0)</span></div>
        </div>
      </div>
      <div class="pay-balance subject">
        <div class="common">
          <div>
            <p class="pay-heading">其他支付方式</p>
          </div>
          <div class="pay-right other-pay-pirce">
            还需支付 <span>￥199</span>
          </div>
        </div>
        <div class="common">
          <div>
            <i class="iconfont icon-zhifubao"> <span> 支付宝</span></i>
            <!-- <p class="pay-heading">余额支付</p> -->
            <p class="pay-details">首单立减，最高88元</p>
          </div>
          <van-radio-group v-model="radio">
            <van-radio name="a"></van-radio>
          </van-radio-group>
        </div>
        <div class="common">
          <div>
            <i class="iconfont icon-yinlian"> <span> 银联支付</span></i>
            <!-- <p class="pay-heading">余额支付</p> -->
            <p class="pay-details">单卡单日最高额度5万(3.3.5版本及以上)</p>
          </div>
          <van-radio-group v-model="radio">
            <van-radio name="b"></van-radio>
          </van-radio-group>
        </div>
        <div class="common">
          <div>
            <i class="iconfont icon-huabeifenqilogo"> <span> 花呗分期</span></i>
            <!-- <p class="pay-heading">余额支付</p> -->
           
          </div>
          <van-radio-group v-model="radio">
            <van-radio name="c"></van-radio>
          </van-radio-group>
        </div>
      </div>
    </div>

    <!-- footer -->
    <footer class="footer">
        <button class="footer-payment">立即支付</button>
    </footer>
  </div>
</template>

<script>
import Vue from "vue";
import { CountDown } from "vant";

import { RadioGroup, Radio } from 'vant';

Vue.use(CountDown, RadioGroup, Radio);

export default {
  data() {
    return {
      time: 30 * 60 * 60 * 1000,
      radio: ["a","b","c"],
    };
  },
};
</script>

<style scpoed>
@import url("http:////at.alicdn.com/t/font_2795002_omqgp1cqu9.css");
#TopNav {
  width: 100%;
  height: 1rem;
  position: fixed;
  top: 0;
  background-color: rgb(254, 254, 254);
}
#top {
  position: relative;
}
#return {
  font-size: 0.3rem;
  position: absolute;
  top: 0.3rem;
  left: 4%;
}
#Toptext {
  text-align: center;
  line-height: 1rem;
  font-size: 0.3rem;
}
#pay-problem {
  position: absolute;
  top: 0.35rem;
  left: 6rem;
}

/* countdown-time */
.countdown-time {
  margin-top: 1rem;
  width: 100%;
  height: 2.1rem;
  background-color: #f7f7f7;
}
.pay-time {
  font-size: 0.2rem;
  text-align: center;
  padding-top: 0.3rem;
  display: flex;
  justify-content: center;
}
.pay-time i {
  font-size: 0.2rem;
}
.pay-pirce {
  text-align: center;
  font-size: 0.8rem;
}

/* things */
.things {
  width: 100%;
  background-color: #f7f7f7;
}
/* pay-palance */
.subject {
  display: inline-block;
  width: 96%;
  padding: 0.1rem 0.1rem 0.1rem 0.1rem;
  border-radius: 0.1rem;
  background-color: rgb(254, 254, 254);
  font-size: 0.3rem;
  box-sizing: border-box;
  line-height: 0.45rem;
  margin: 2%;
}
.common {
  border-bottom: 0.01rem solid #eeeeee;
  display: flex;
  justify-content: space-between;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}
.pay-balance {
}
.pay-heading {
  font-size: 0.3rem;
}
.pay-details {
  color: #999999;
}
.pay-right {
  font-size: 0.3rem;
  padding-top: 0.2rem;
}
.pay-right span {
  color: #999999;
}
.icon-yue {
  color: #83a7f8;
}
.icon-yue span {
  color: #000;
}
.other-pay-pirce {
  padding-top: 0;
}
.other-pay-pirce span {
  color: red;
}
.icon-zhifubao{
    color: #3775f6;
}
.icon-zhifubao span{
    color: #000;
}
.icon-yinlian{
    color: #377e87;
}
.icon-yinlian span{
    color: #000;
}
.icon-huabeifenqilogo{
    color: #3875f6;
}
.icon-huabeifenqilogo span{
    color: #000;
}
 .footer{
        display: block;
        display: flex;
        justify-content: space-between;
        height: 1.1rem;
        width: 100%;
        position: fixed;
        bottom: 0;
    }
.footer-payment{
        width: 100%;
        height: 0.9rem;
        border-radius: 1rem;
        color: white;
        font-size: 0.3rem;
        background: rgb(207, 178, 144) !important;
        border: none;
    }
</style>